<?php
	if ($rows == 1) {
		if (isset($value) && $value != '') $attr['value'] = $value;
?><input id="<?php echo $id; ?>" name="<?php echo $id; ?>"<?php 
	if ($disabled) echo ' disabled="disabled"';
	echo $this->attr($attr); 
?>/><?php
	} else {
?><textarea id="<?php echo $id; ?>" name="<?php echo $id; ?>"<?php 
	if ($disabled) echo ' disabled="disabled"';
	echo $this->attr($attr); 
?>/><?php if (isset($value)) echo $value; ?></textarea><?php
	}
?>